<%@page contentType="text/html" pageEncoding="UTF-8"%><%@page import="com.bitoon.basketdudes.ws.*, java.util.*" %><%
    int exito = 0;
    int codError = 0;

    String ip = null;
    int puerto = 0;
    String tipo = null;
    int maxConexiones = 0;

    try {
        ip = request.getParameter("ip");
        puerto = Integer.parseInt(request.getParameter("puerto"));
        tipo = request.getParameter("tipo");
        maxConexiones = Integer.parseInt(request.getParameter("max_conex"));

        LoginAction loginAction = new LoginAction();
        loginAction.wsBajaServicio(ip, puerto, tipo);
    } catch (Exception e) {
        exito = -1;
        codError = -1;
    }
%><%=exito%>|<%=codError%>